<template>
  <div class="edit-dialog">
    <el-dialog width="50%" title="编辑任务" :visible.sync="ifDialog">
      <el-form :model="form" label-position="left">
        <el-form-item label="订单内容：" label-width="180px">
          <el-input
            v-model="form.orderContent"
            class="input-25"
            type="textarea"
          ></el-input>
        </el-form-item>

        <el-form-item label="预定服务开始时间：" label-width="180px">
          <el-date-picker
            v-model="form.predictServiceStartTime"
            type="datetime"
            placeholder="选择日期时间"
          >
          </el-date-picker>
        </el-form-item>

        <el-form-item label="预定服务结束时间：" label-width="180px">
          <el-date-picker
            v-model="form.predictServiceEndTime"
            type="datetime"
            placeholder="选择日期时间"
          >
          </el-date-picker>
        </el-form-item>

        <el-form-item class="footer">
          <el-button
            class="confrim-btn"
            @click="handleConfirm"
            type="primary"
            size="small"
            >确认</el-button
          >
          <el-button @click="handleCancel" type="default" size="small"
            >取消</el-button
          >
          <el-button @click="handleDelete" type="danger" size="small"
            >删除</el-button
          >
        </el-form-item>
      </el-form>
    </el-dialog>
  </div>
</template>

<script>
import props from './props';
import data from './data';
import lifecircle from './lifecircle';
import methods from './methods';
import watch from './watch';
export default {
  name: 'EditDialog.vue',
  props,
  data,
  ...lifecircle,
  methods,
  watch
};
</script>

<style scoped lang="less">
.footer {
  margin-top: 40px;
  .confrim-btn {
    margin-left: 200px;
  }
}
</style>
